#pragma once
#include "stdafx.h"

class TcpServer
{
public:
    int sockfd;
    TcpServer();
    void Listen(uint32_t port);
    std::function<void(TcpSocket *)> on_accept;
    void SetOnAccept(std::function<void(TcpSocket *)> on_accecpt);
    void OnClose();
};
